package com.xmut.rc.mapper;

import com.xmut.rc.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description: 角色权限Mapper
 * @author: XS
 * @date: 2022/5/23
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    @Select("select * from rc_role_permission where role_id=#{roleId}")
    List<RolePermission> getRolePermissionByRoleId(String roleId);

    @Select("delete from rc_role_permission where role_id = #{roleId}")
    void deleteRolePermission(String roleId);
}
